import 'package:environmental_les_app/common/style/colours.dart';
import 'package:flutter/material.dart';

class SearchEntryWidget extends StatelessWidget {
  final String hintText;

  const SearchEntryWidget({super.key, required this.hintText});

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 12),
      child: Container(
        padding: const EdgeInsets.all(10),
        decoration: BoxDecoration(
          color: Colours.bgF2F3F5,
          borderRadius: BorderRadius.circular(6),
        ),
        child: Row(
          children: [
            const Icon(Icons.search, color: Colours.text969),
            const SizedBox(width: 8),
            Text(
              hintText,
              style: const TextStyle(color: Colours.textC9CDD4, fontSize: 15),
            ),
          ],
        ),
      ),
    );
  }
}
